package com.xingxue.shopping.model.service.impl;

import java.util.List;

import com.xingxue.shopping.model.dao.ITypeDao;
import com.xingxue.shopping.model.dao.impl.TypeDaoImpl;
import com.xingxue.shopping.model.persist.Type;
import com.xingxue.shopping.model.service.ITypeService;

public class TypeServiceImpl implements ITypeService {

	private ITypeDao dao;
	
	public TypeServiceImpl()
	{
		dao=new TypeDaoImpl();
	}
	
	@Override
	public List<Type> getAll() {
		// TODO Auto-generated method stub
		return dao.getAll();
	}

	@Override
	public Integer addType(Type t) {
		// TODO Auto-generated method stub
		return dao.addType(t);
	}

}
